<template>
  <div id="app">
    <div id="nav">
    </div>
    <!-- <van-button type="primary" @click="hAjax1">向服务器1发请求</van-button> -->
    <!-- <hr> -->
    <!-- <van-button type="primary" @click="hAjax2">向服务器2发请求</van-button> -->
<!-- <van-button loading type="primary" loading-type="spinner" />
<van-button loading type="info" loading-text="加载中..." /> -->
    <router-view/>
  </div>
</template>
<script>
import { instance1, instance2 } from '../src/utils/request'
export default {
  data () {
    return {

    }
  },
  methods: {
    hAjax1 () {
      instance1({
        url: '/app/v1_0/user/channels',
        method: 'get'
      })
    },
    hAjax2 () {
      instance2({
        url: '/app/v1_0/user/channels',
        method: 'get'
      })
    }
  }
}
</script>

<style lang="less">
// #nav {
//   width: 200px;
//   height: 200px;
// }
//   button {
//     width: 200px;
//   }
</style>
